import ajax from '@/utils/request.js'

export function getUserInfo(data) {
    return ajax({
        url: '/mobile/userInfo',
        method: 'GET',
        data,
		hiddenLoading: true
    })
}

export function getUserCheck(data) {
    return ajax({
        url: '/mobile/instructor/center/userInfoCheck',
        method: 'GET',
        data
    })
}

export function updateUserInfo(data) {
    return ajax({
        url: '/mobile/instructor/center/userInfoSubmit',
        method: 'POST',
        data
    })
}

// 我的成就
export function getAchievementList(data) {
    return ajax({
        url: '/mobile/instructor/center/achievement/list',
        method: 'GET',
        data
    })
}

// 获取领域
export function getDictionary() {
	return ajax({
		url: '/dictionary/get',
		method: 'GET',
		data: {name: 'learn_focus'}
	})
}
